package com.lanxiaoye.shoppingSystem.component;

import com.lanxiaoye.shoppingSystem.entity.ScanRecord;

import java.util.Comparator;

/**
 * Created by Administrator on 2017/4/4.
 */
public class ComparatorRecord implements Comparator {
    @Override
    public int compare(Object o1, Object o2) {
        ScanRecord scanRecord1 = (ScanRecord)o1;
        ScanRecord scanRecord2 = (ScanRecord)o2;
        int flag = scanRecord2.getScanNum().compareTo(scanRecord1.getScanNum());
        return flag;
    }
}
